<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ page import="java.lang.management.ManagementFactory" %>
<%@ page import="com.sun.management.OperatingSystemMXBean" %>
<%
    String path = request.getContextPath();
%>

<jsp:include page="/admin/inc/incHead.jsp" flush="false"/>
<table width="100%" class="table table-bordered" style="background-color: #f4f4f4">
    <tr>
        <td colspan="2" class='title'><span>系统基本信息</span></td>
    </tr>
    <tr>
        <td width="25%" align="right">操作系统版本：</td>
        <td width="75%" bgcolor="#FFFFFF"><%=System.getProperty("os.name") %>
            &nbsp;&nbsp;<%=System.getProperty("os.version") %>
        </td>
    </tr>
    <tr>
        <td width="25%" align="right">操作系统类型：</td>
        <td bgcolor="#FFFFFF"><%=System.getProperty("os.arch") %><!-- x32,x86 --></td>
    </tr>
    <tr>
        <td width="25%" align="right">临时目录：</td>
        <td bgcolor="#FFFFFF"><%=application.getRealPath("/")%>
        </td>
    </tr>
    <tr>
        <td width="25%" align="right">JDK版本：</td>
        <td bgcolor="#FFFFFF"><%=System.getProperty("java.version") %>
        </td>
    </tr>
    <tr>
        <td width="25%" align="right">JKD安装目录：</td>
        <td bgcolor="#FFFFFF"><%=System.getProperty("java.home") %>
        </td>
    </tr>
    <tr>
        <td width="25%" align="right">总内存/剩余内存：</td>
        <td bgcolor="#FFFFFF">
            <% OperatingSystemMXBean osmb = (OperatingSystemMXBean) ManagementFactory.getOperatingSystemMXBean();%>
            <%=osmb.getTotalPhysicalMemorySize() / 1024 / 1024 %>MB/<%=osmb.getFreePhysicalMemorySize() / 1024 / 1024 %>
            MB
        </td>
    </tr>
</table>
<jsp:include page="/admin/inc/incFoot.jsp" flush="false"/>
